package com.lightsh.object;

import com.lightsh.gui.BaseScreen;
import com.lightsh.interfaces.creator.IBodyCreator;

/**
 * 这个类只做参考(如何create表面的物体)，不会使用
 * @author Light
 *
 */
public abstract class SurfaceObject extends SimpleObject implements IBodyCreator{
	protected final BaseScreen mParentScreen;
	public SurfaceObject(BaseScreen screen, float x, float y){
		super(screen, x, y);
		mParentScreen = screen;
	}
	
	@Override
	public void create() {
		super.create();
		mParentScreen.addSurfaceObject(this);
	}
}
